package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookCommentsDao;
import io.wdb.modules.generator.generator.entity.BookCommentsEntity;
import io.wdb.modules.generator.generator.service.BookCommentsService;



@Service("bookCommentsService")
public class BookCommentsServiceImpl implements BookCommentsService {
	@Autowired
	private BookCommentsDao bookCommentsDao;
	
	@Override
	public BookCommentsEntity queryObject(Long id){
		return bookCommentsDao.queryObject(id);
	}
	
	@Override
	public List<BookCommentsEntity> queryList(Map<String, Object> map){
		return bookCommentsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookCommentsDao.queryTotal(map);
	}
	
	@Override
	public void save(BookCommentsEntity bookComments){
		bookCommentsDao.save(bookComments);
	}
	
	@Override
	public void update(BookCommentsEntity bookComments){
		bookCommentsDao.update(bookComments);
	}
	
	@Override
	public void delete(Long id){
		bookCommentsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookCommentsDao.deleteBatch(ids);
	}
	
}
